package org.sacinfo.controller;

import org.sacinfo.entity.User;
import org.sacinfo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {
	@Autowired
	private UserService userService;
	@RequestMapping("test")
	public String test(ModelMap map){
		
		User user = userService.queryObject(null);
		
		map.put("user", user);
		
		return "test";
		
	}

}
